feat: default block alignment to centerLeft#74
Merged
Conversation
|
To view this pull requests documentation preview, visit the following URL: Documentation is deployed and generated using docs.page. |
Blocks (@block, @widget, @image, and custom widgets) now render with centerLeft alignment when `align` is not set explicitly, instead of center. Paragraph-like content is easier to read and scan when left-aligned. Set `align: center` explicitly to restore the previous default. Closes #65 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
712828f to
95d3492
Compare
|
Visit the preview URL for this PR (updated for commit 95d3492): https://superdeck-dev--pr74-tilucasoli-fix-issue-8kk6bjnu.web.app (expires Fri, 19 Jun 2026 03:10:56 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: bd68fc230762285849207e7e120aaf87cd4ca2f9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #65.
Blocks (
@block,@widget,@image, and custom widgets) now render withcenterLeftalignment whenalignis not set, instead ofcenter, since paragraph-like content is easier to read and scan when left-aligned. The default is resolved through a newBlock.resolvedAligngetter in the core model, used by the block container and the built-in image widget;align: centercan still be set explicitly to restore the previous behavior. Updates thealignreference docs and adds regression tests forContentBlock/WidgetBlockdefaults and the rendered block alignment.🤖 Generated with Claude Code